//
//  FindFlexibleCell.swift
//  JTYP
//
//  Created by Groot on 2017/12/14.
//  Copyright © 2017年 inspur. All rights reserved.
//

class FindFlexibleCell: UICollectionViewCell {
    static let CellIdentifier = String(describing: FindFlexibleCell.self)

    @IBOutlet weak var iconView: UIImageView!
    @IBOutlet weak var titleLab: UILabel!
    @IBOutlet weak var creatorlab: UILabel!
    @IBOutlet weak var zanView: ZanView!
    
    override func awakeFromNib() {
        iconView.clipsToBounds = true
        iconView.layer.cornerRadius = 6
        
    }
    
    func setData(obj: Notice) {
        iconView.yy_setImage(with: URL.init(string: "\(obj.pictures?.first?.url ?? "")"), placeholder: UIImage.init(named: "pyq_creat_fbgg"))
        titleLab.text = obj.title
        creatorlab.text = obj.creatername
        zanView.zanNum = obj.star ?? 0
    }
}
